<template>
  <el-button @click="emitDate">触发emit传递数据</el-button>
</template>
<script lang="ts" setup>
import { useMittEmit, mittNameEnum } from '@twa/hooks'
function emitDate() {
  useMittEmit(mittNameEnum.test, { info: 'hello world' })
}
</script>